//按需导出每个请求api接口
import request from '../request'

//获取验证图片
export const GetLoginPictureAPI = () => request.get('/authcenter/verify/getVerifyCode', { headers: { responseType: "arraybuffer" } })

//进行图片验证
export const PostLoginPictureAPI = (params) => request.get('/authcenter/verify/checkVerifyCode?verifyCode=' + params)

//验证账号密码
export const PostLoginByAccountAPI = (params) => request.post('/authcenter/auth/login', params)

//获取手机验证码
export const GetLoginCodeAPI = (params) => request.post('/authcenter/sms/sendMsgCode', params)

//验证手机账号
export const PostLoginByPhoneAPI = (params) => request.post('/authcenter/sms/loginByMsgCode', params)